import http from "../utils/http2.js";
//查询部门
function queryDept(data) {
  return http.post("/v1/dept/query", data);
}

//更新部门状态
function changeDeptStatus(id, status) {
  return http.put("/v1/dept/status?id=" + id + "&status=" + status);
}

//保存部门
function saveDept(data) {
  return http.post("/v1/dept", data);
}
export { queryDept, changeDeptStatus, saveDept };
